package leetcode.D600.T503;

import util.ListUtil;

public class M503 {
    public static void main(String[] args) {
        int[] nums = ListUtil.parseIntArray("[2,4,3,1]");
        int[] result = new Solution().nextGreaterElements(nums);
        for (int res : result) {
            System.out.print(res + " ");
        }
        System.out.println();
    }
}
